package co.yixiang.common.core.constant;

/**
 * 权限相关通用常量
 *
 * @author yshop
 */
public class SecurityConstants
{
    /**
     * 令牌类型
     */
    public static final String BEARER_TOKEN_TYPE = "Bearer";

    /**
     * 授权token url
     */
    public static final String AUTH_TOKEN = "/oauth/token";

    /**
     * 门店用户校验 TODO
     */
    public static final String RETAIL_TOKEN = "/retail/token";

    /**
     * 注销token url
     */
    public static final String TOKEN_LOGOUT = "/token/logout";

    /**
     * 自定义登录URL
     */
    public static final String MOBILE_TOKEN_URL = "/app/token/login";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    public static  final  String DETAILS_RETAIL="retail";
    public static  final  String DETAILS_RETAILTYPE="retailType";
    public static  final  String DETAILS_PERMIT="permit";

    /**
     * 用户名字段
     */
    public static final String DETAILS_PHONE = "phone";


    /**
     * 认证类型参数 key
     */
    public static final String  GRANT_TYPE = "grant_type";



    /**
     * 密码模式
     */
    public static final String PASSWORD = "password";

    /**
     * 登录类型
     */
    public static final String LOGIN_TYPE = "login_type";

    public static final String APP_LOGIN = "app_login";


    /**
     * 客户端模式
     */
    public static final String CLIENT_CREDENTIALS = "client_credentials";


    /**
     * 用户基本信息
     */
    public static final String DETAILS_USER = "user_info";

    /**
     * 协议字段
     */
    public static final  String DETAILS_LICENSE = "license";


    /**
     * 项目的license
     */
    public static final String YSHOP_LICENSE = "made by yshop";

    /**
     * 激活字段 兼容外围系统接入
     */
    public static final String ACTIVE = "active";

}
